from flask import Blueprint
from exts import mail
from flask_mail import Message

bpTest = Blueprint("test", __name__, url_prefix='/test')


@bpTest.route("/mail")
def sendMail():
    message = Message(subject="QQ邮箱测试", recipients=["2276685510@qq.com"], body="WTcrazy向你发来问候")
    mail.send(message)
    return "邮件发送成功了捏"


@bpTest.route("/")
def Test():
    return "进入Test蓝图"
